import java.util.Random;

public class methodofbf1 {
    //根据突击兵不同动作引起的返回值，触发骑兵的不同击杀动作
    public static void Calvery(int a){
        if (a>2){
            System.out.println("骑兵长枪加速将其挑起击杀");
        }else {
            System.out.println("骑兵挥舞长枪将其击杀");
        }
    }
    public static int Assault(){//返回一个随机数
        Random random = new Random();
        int intnum = random.nextInt(5);
//        int intnum = 10;
        if (intnum > 2){
            System.out.println("突击兵正面朝骑兵射击");
        }else {
            System.out.println("突击兵在离骑兵稍远的地方射击");
        }

        return intnum;
    }

    public static void main(String[] args) {
        int a = Assault();
        Calvery(a);
    }
}
